//
//@File    :	15.3_use_tv.cpp
//@Time    :	2022/03/08 16:26:25
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the Tv and Remote classes
//

#include <iostream>
#include "15.1_tv.h"

int main()
{
    using std::cout;
    Tv s42;
    cout<<"Initial settings for 42\"TV:\n";
    s42.settings();
    s42.chanup();
    cout<<"\nAdjusted settings for 42\"TV:\n";
    s42.chanup();
    cout<<"\nAdjusted settings for 42\"TV:\n";
    s42.settings();

    Remote grey;
    grey.set_chan(s42,10);
    grey.volup(s42);
    cout<<"\n42\"settings sfter using remote:\n";
    s42.settings();

    Tv s58(Tv::On);
    s58.set_mode();
    grey.set_chan(s58,28);
    cout<<"\n58\"setting:\n";
    s58.settings();
    system("pause");
    return 0;
}